package com.neusoft.demo3.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("cart")
public class Cart {
    @TableId(type = IdType.AUTO) // 添加这个注解
    private Integer id;
    private Integer goodsId;
    private Integer userId;
    private Integer goodsNum;
    private String  creatTime;
    private String goodsName; // 新增商品名称
    private Float goodsPrice; // 新增商品价格
    private String goodsImg; // 新增商品图片

    public Integer getGoodsId() {
        return goodsId;
    }


    public String getGoodsName() {
        return goodsName;
    }

    public Float getGoodsPrice() {
        return goodsPrice;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    // 其他字段的getter/setter（可选，根据需要添加）
    public Integer getId() {
        return id;
    }

    public Integer getUserId() {
        return userId;
    }
}
